diff options
Diffstat (limited to 'apps/web/app/invite/[token]')
| -rw-r--r-- | apps/web/app/invite/[token]/page.tsx | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/apps/web/app/invite/[token]/page.tsx b/apps/web/app/invite/[token]/page.tsx new file mode 100644 index 00000000..874146fc --- /dev/null +++ b/apps/web/app/invite/[token]/page.tsx @@ -0,0 +1,28 @@ +import { redirect } from "next/navigation"; +import InviteAcceptForm from "@/components/invite/InviteAcceptForm"; +import KarakeepLogo from "@/components/KarakeepIcon"; +import { getServerAuthSession } from "@/server/auth"; + +interface InvitePageProps { + params: { + token: string; + }; +} + +export default async function InvitePage({ params }: InvitePageProps) { + const session = await getServerAuthSession(); + if (session) { + redirect("/"); + } + + return ( + <div className="flex min-h-screen items-center justify-center bg-gray-50 px-4 py-12 sm:px-6 lg:px-8"> + <div className="w-full max-w-md space-y-8"> + <div className="flex items-center justify-center"> + <KarakeepLogo height={80} /> + </div> + <InviteAcceptForm token={params.token} /> + </div> + </div> + ); +} |
